FROM node:10

RUN apt-get update \
	&& apt-get install -y net-tools build-essential valgrind

WORKDIR /service

COPY meetingVueCli meetingVueCli
COPY server server
RUN npm config set registry https://registry.npmjs.org \
    && cd /service/meetingVueCli \
    && npm install \
    && npm run build \
    && cd /service/server \
    && npm install

CMD ["node", "/service/server/src/index.js"]
